package com.quwan.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quan
 * @date 2021-12-09 11:41
 */
@Getter
@AllArgsConstructor
public enum BalancePayTypeEnum {
    //余额支付类型 0订单购买 1充值会员
    CONSUME_ORDER("0", "订单消费",0),
    RECHARGE_VIP("1", "会员充值",0),
    DISPATCH_ORDER("2", "派单消费",6),
    DISPATCH_BEFORE("3", "派单定金",6);
    String type;
    String tips;
    Integer tradeType;

    public static BalancePayTypeEnum getByType(String type) {
        for (BalancePayTypeEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }


}
